#include "BeepTool.h"
#include <reg52.h>
sbit bep = P1^0;
unsigned char beepIndex = 255;
unsigned char beepTime = 255;
void beepScanf(){
	
	  if(beepIndex < beepTime){
			 bep = 0;
		 }else{
			 bep = 1;
		 }
	
	  
}

void beepFor(char time){
		beepIndex = 0;
		beepTime = time;
}